package com.neusoft.nep.admin.entity;



public class AqiTrendData {
    private String month;    // 月份（如 "2025-01"）
    private int data;        // AQI 数据
    private int excessCount; // 超标数量（根据规则计算）

    public void setMonth(String month) {
        this.month = month;
    }

    public void setData(int data) {
        this.data = data;
    }

    public void setExcessCount(int excessCount) {
        this.excessCount = excessCount;
    }

    public AqiTrendData(String month, int data) {
        this.month = month;
        this.data = data;
        // 假设 AQI > 100 为超标
        this.excessCount = data > 100 ? 1 : 0;
    }

    // Getters（必须提供）
    public String getMonth() { return month; }
    public int getData() { return data; }
    public int getExcessCount() { return excessCount; }
}